<template>
  <div class="list-table">
    <div class="area-header">
      <span class="area-header-title">{{ $t('产业地图') }}</span>
    </div>
    <el-form ref="form" :model="form" :inline="true">
      <el-row>
        <el-col :span="12">
          <el-form-item :label="$t('点击跳转查看产业地图：')">
            <template>
              <router-link
                target="_blank"
                :to="{path:'/designMap',query: { id: form.id, mode: 'readonly' }}"
                class="link_a"
              >{{ form.fullName }} </router-link>
            </template>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>

  </div>
</template>

<script>
import { getDealEstateMap } from '@/api/deal/map/dealEstateMap'
export default {
  components: {
  },
  data() {
    return {
      // 遮罩层
      loading: true,
      // 表单参数
      form: {},
      // 表单校验
      rules: {},
      // 是否为管理员
      isAdmin: this.$store.state.user.userId === '1'
    }
  },
  created() {
    this.$bus.$emit('async_done')
    // this.init(null)
  },
  methods: {
    // 初始化数据
    init(data) {
    debugger
      this.loading = true
      if (data != null && data.id !== undefined) {
        getDealEstateMap(data.id).then(response => {
          this.form = response.data
          this.loading = false
        }).catch(() => {
          this.loading = false
        })
      } else {
        this.reset()
        this.loading = false
      }
    }
  }
}
</script>
<style>
.mapBtnDiy .el-button+.el-button {
  margin-left: 0px;
}
</style>
